<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        body {
            height: 97vh;
            background-color:pink;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;

        }
        .box {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            width: 450px;
            height: 400px;
            backdrop-filter: blur(10px);
            background: rgba(150,50,50,0.2);
        }
        .box > h1 {
            color: rgba(255,255,255,0.9);
            margin-bottom: 20px;
        }
        .sub{
            width:80px;
            height:30px;
            font-size:10px;
            border-radius: 30px
        }
        .box .input-box {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: start;
            margin-bottom: 10px;
        }
        .box .input-box > td {
            margin-bottom: 5px;
            color: rgba(255,255,255,0.9);
            font-size: 20px;
        }

        .box .input-box > td >input {
            box-sizing: border-box;
            color: rgba(255,255,255,0.9);
            font-size: 10px;
            height: 40px;
            width: 200px;
            background: rgba(255,255,255,0.3);
            border: 1px solid rgba(255,255,255,0.5);
            transition: 0.2s;
            outline: none;
            padding: 0 10px;
            letter-spacing: 1px;
        }
        .box .sub {
            width: 120px;
            height: 35px;
            border: 1px solid rgba(255, 255, 255,0.8);
            background: rgba(190, 190, 190,0.2);
            color: rgba(255,255,255,0.9);;
            transition: 0.2s;
        }
    </style>
</head>
<body>
<div class="box">
    <h1>登录页面</h1>
    <form th:action="@{/login}" method="post">
        <table>
            <tr class="input-box">
                <td>用户名:</td>
                <td><input type="text" name="username"></td>
            </tr>
            <tr class="input-box">
                <td>密码:</td>
                <td><input type="password"  name="password"></td>
            </tr>
            <tr>
                <td><input class="rem" type="checkbox" name="rememberme">记住我</td>
            </tr>
            <tr>
                <td><input class="sub" type="submit" value="login"></td>
            </tr>
            <tr>
                <td><span th:text="${msg}"></span></td>
            </tr>
        </table>
    </form>
</div>
</body>
</html>